.main-header {
  @media (max-width: 767px) {
    .logo {
      z-index: 1001;
    }

    .navbar-static-top {
      position: absolute;
      left: 0;
      top: 0;
      z-index: 1000;
      width: 42px;
    }

    .nav-system-menu {
      display: none;
    }

    .navbar-custom-menu {
      display: none;
    }
  }
}

.main-sidebar {
  padding-top: 0;
  margin-top: 50px;
  min-height: auto;
}

.fixed .content-wrapper {
  padding-top: 0;
  padding-bottom: 15px;
  margin-top: 50px;
  height: 100%;
}


.module-menu {
  .module-treeview-menu {
    li {
      .icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        overflow: hidden;
      }
    }
  }
}

.skin-blue-light,
.skin-black-light,
.skin-green-light,
.skin-red-light,
.skin-yellow-light,
.skin-purple-light {

  .main-sidebar::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 8px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
  }

  .main-sidebar::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/

    background: rgba(0, 0, 0, 0.1);
  }

  .main-sidebar::-webkit-scrollbar-track {
    /*滚动条里面轨道*/

    background: #fff;
  }

  .main-sidebar {
    background-color: #fff;
    z-index: 860;
    height: calc(100% - 50px);
    overflow-x: hidden;
    overflow-y: auto;

    .expand-info {
      padding-top: 20px;
      padding-bottom: 10px;
      padding-left: 5px;
      text-align: center;
      border-bottom: 1px solid #f2f2f2;

      .expand-icon {
        margin: 0 auto;
        width: 80px;
        height: 80px;
        border-radius: 21px;
        overflow: hidden;

        img {
          width: 100%;
        }
      }

      .title {
        font-size: 16px;
        color: #666;
      }
    }

    .sidebar-menu {

      li>a,
      li.active>a,
      li.menu-open>a {}

      .menu-open {
        display: block;
      }

      .treeview-menu {
        background: #fff;

        li.active {
          a {
            font-weight: 600;
            color: #000;
            background-color: #fff;

            i {
              color: #f90;
            }
          }
        }

        li {

          a {
            padding: 8px 5px 8px 20px;

            &:hover,
            &:active {
              color: #000;

              i {
                color: #f90;
              }
            }
          }
        }
      }
    }
  }

}

.skin-blue,
.skin-black,
.skin-green,
.skin-red,
.skin-yellow,
.skin-purple {

  .main-sidebar::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 8px;
    /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
  }

  .main-sidebar::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    background: rgba(0, 0, 0, 0.5);
  }

  .main-sidebar::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    background: #383e4b;
  }

  .main-sidebar {
    background-color: #383e4b;
    z-index: 860;
    height: calc(100% - 50px);
    overflow-x: hidden;
    overflow-y: auto;

    .expand-info {
      padding-top: 20px;
      padding-bottom: 10px;
      padding-left: 5px;
      text-align: center;
      border-bottom: 1px solid #2d323d;

      .expand-icon {
        margin: 0 auto;
        width: 80px;
        height: 80px;
        border-radius: 21px;
        overflow: hidden;

        img {
          width: 100%;
        }
      }

      .title {
        font-size: 16px;
        color: #fff;
      }

      p {
        color: #fff;
      }

      .btn-module {

        background-color: rgba(0, 0, 0, 0.1);
        color: #fff;
      }
    }

    .sidebar-menu {

      .header {
        background-color: #2d323d;
      }

      li>a,
      li.active>a,
      li.menu-open>a {
        color: rgb(168, 167, 167);
        padding: 12px 5px 12px 20px;
        background-color: #383e4b;
      }

      .menu-open {
        display: block;
      }

      .treeview-menu {
        background: #383e4b;

        li.active {
          a {
            font-weight: 600;
            color: #fff;

            i {
              color: #f90;
            }
          }
        }

        li {
          a {
            padding: 8px 5px 8px 20px;
            background: #383e4b;
            color: #fff;

            &:hover,
            &:active {
              color: #fff;

              i {
                color: #f90;
              }
            }
          }
        }

        li:last-child {
          border-bottom: 1px solid #2d323d;
        }
      }
    }
  }
}

/*
.skin-black-light, 
.skin-green-light, 
.skin-red-light, 
.skin-yellow-light, 
.skin-purple-light
 */
.skin-blue,
.skin-blue-light {

  .main-header {
    .logo {
      background-color: #0BA0B3;

      &:hover {
        background-color: #0BA0B3;
      }
    }

    .navbar {
      background-color: #03b8cf;
    }
  }

  .sidebar-menu {

    li:hover>a,
    li.active>a {
      border-left-color: #03b8cf;

      i {
        color: #09c;
      }
    }
  }
}

.skin-black,
.skin-black-light {
  .sidebar-menu {

    li:hover>a,
    li.active>a {
      border-left-color: #ddd;

      i {
        color: #ddd;
      }
    }
  }
}

.skin-green,
.skin-green-light {
  .sidebar-menu {

    li:hover>a,
    li.active>a {
      border-left-color: #00a65a;

      i {
        color: #00a65a;
      }
    }
  }
}

.skin-red,
.skin-red-light {
  .sidebar-menu {

    li:hover>a,
    li.active>a {
      border-left-color: #dd4b39;

      i {
        color: #dd4b39;
      }
    }
  }
}

.skin-yellow,
.skin-yellow-light {
  .sidebar-menu {

    li:hover>a,
    li.active>a {
      border-left-color: #f39c12;

      i {
        color: #f39c12;
      }
    }
  }
}

.skin-purple,
.skin-purple-light {
  .sidebar-menu {

    li:hover>a,
    li.active>a {
      border-left-color: #605ca8;

      i {
        color: #605ca8;
      }
    }

  }
}


.control-sidebar-dark::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

.control-sidebar-dark::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  background: rgba(0, 0, 0, 0.5);
}

.control-sidebar-dark::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: #222d32;
}

.control-sidebar-light::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 5px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}

.control-sidebar-light::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  background: rgba(0, 0, 0, 0.2);
}

.control-sidebar-light::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: #fff;
}

.sidebar-collapse {
  .main-sidebar {
    .sidebar {
      .expand-info {
        .expand-icon {
          width: 36px;
          height: 36px;
          border-radius: 10px;
        }

        h3 {
          display: none;
        }

        p {
          display: none;
        }
      }

      .sidebar-menu {
        .treeview {
          >a {
            display: none;
          }
        }

        .treeview-menu {
          display: block !important;

          >li {
            >a {
              padding: 8px 5px 8px 12px;

              span {
                display: none;
              }
            }
          }
        }

        .module-treeview-menu {
          >li {
            >a {
              padding: 8px 5px 8px 3px;
            }
          }
        }
      }
    }
  }
}